package com.cqupt.springframework.test.aop;

import com.cqupt.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author Zhy
 * @date 2021/8/5 16:43
 */
public class UserServiceBeforeAdvice implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("拦截方法：" + method.getName());
    }
}
